window.onload = function login() {
    alert('登录成功');
}

const check = {
    valid: function (num) {
        console.log(`你是第${num}位访客`);
    },
    tips: function (name) {
        console.log(`恭喜${name}登录成功`);
    },
    upper: function (params) {
        console.log(params.toUpperCase());
    }
}
